import React from 'react'
import { Route, Redirect, Switch } from 'react-router-dom'
import Account from 'components/Account/loadable'
import Shop from 'components/Shop/loadable'
import Nav from './base/nav'
import {
  Wrapper,
  Content
} from './style'

const Home = () => (
  <Wrapper>
    <Nav />
    <Content>
      <Switch>
        <Route path="/home/account" component={Account} />
        <Route path="/home/shop" component={Shop} />
        <Redirect to="/home/account" />
      </Switch>
    </Content>
  </Wrapper>
)

export default Home
